//
// Created by chen on 25-5-10.
//

#ifndef SVPWM_H
#define SVPWM_H

class SVPWM {
private:
    float dcBusVoltage;     // 直流母线电压
    float deadTime;         // 死区时间(秒)
    float carrierPeriod;    // PWM载波周期(秒)
    int calculateSector(float angle);

public:
    SVPWM(float dcBusVoltage = 12.0f);

    void modulate(float valpha, float vbeta, float mechanicalAngle, float& dutyU, float& dutyV, float& dutyW);
};

#endif // SVPWM_H
